#pragma once
#include <errno.h>
#include <string.h>
#include <stdio.h>

#define thread_perror(msg){char error_str[256]; strerror_r(errno,error_str,sizeof(error_str)); fprintf(stderr,"%s:%s\n",msg,error_str);}
